package com.cb.admin.mapper;
/*
 *  
 *  
*/
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.cb.admin.domain.UserInfo;

/**
 * 
 * @author 
 *
 */
@Mapper
public interface IUserInfoMapper{
	
	public List<Map> query4PointPeople(UserInfo userInfo);
    
	public int query4PointPeopleSize(UserInfo userInfo);
	
	public List<Map> queryPeople(UserInfo userInfo);
    
	public int queryPeopleSize(UserInfo userInfo);
	
	public List<Map> query(UserInfo userInfo);
    
	public int querySize(UserInfo userInfo);
	
	public int queryByAccount(String account);
	
	public UserInfo queryByAP(String account);
	
	public UserInfo queryById(int id);
	
	public List<String> queryUserRoleByName(String account);
	
	public List<String> queryRoleMemuByName(List<String> roleId);
	
	public int insert(UserInfo userInfo);
	
	public void update(UserInfo userInfo);
    
	public void deleteById(int id);
    
	public void updateState(Map rep);
}